export const onShow = (callback: (isShow: boolean) => void) => {
  document.addEventListener('visibilitychange', function() {
    if (document.hidden) {
      callback(false);
    } else {
      callback(true);
    }
  });
};
